.topic-wrap {
  .topic-header {
    display: flex;

    @media screen and (max-width: 1024px) {
      .topic-header-right {
        display: none;
      }
    }

    .topic-header-left {
      margin: 10px 0 5px 10px;
      width: 50px;
      height: 50px;
    }

    .topic-header-center {
      margin: 10px 10px 5px 10px;
      width: 100%;

      .topic-title,
      .topic-title a {
        color: #555;
        font-size: 14px;
        font-weight: bold;
        overflow: hidden;
      }

      .topic-meta {
        position: relative;
        font-size: 12px;
        line-height: 24px;
        color: #70727c;
        margin-top: 5px;

        span.meta-item {
          font-size: 12px;

          &:not(:last-child) {
            margin-right: 8px;
          }

          .tag {
            height: auto !important;

            &:not(:last-child) {
              margin-right: 3px;
            }
          }
        }

        a {
          color: #778087;
        }
      }
    }

    .topic-header-right {
      margin: 0 10px 5px 0;
      min-width: 100px;
      max-width: 100px;
      text-align: right;

      // TODO 这里计划删掉的，但是列表中还在用
      .like {
        font-size: 12px;

        .like-btn {
          transition: all 0.5s;
          cursor: pointer;

          background-color: rgba(126, 107, 1, 0.08);
          color: #e7672e;
          padding: 4px;
          border-radius: 50%;

          &:hover,
          &.liked {
            color: #fff;
            background-color: #e7672e;
          }
        }

        .like-count {
          font-weight: bold;
          color: #e7672e;

          &::before {
            content: ' x ';
          }
        }
      }

      .count {
        font-size: 12px;
        color: #fff;

        background: #aab0c6;
        padding: 2px 10px;
        border-radius: 6px;
        font-weight: 700;
      }
    }
  }

  .topic-content {
    font-size: 15px;
    padding-top: 0 !important;
    margin: 0 12px;
  }
}

.topic-list {
  margin: 0 0 10px 0 !important;

  li.topic-item {
    padding: 12px 0 12px 8px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s;
    border-bottom: 1px solid #f2f2f2;
    //&:hover {
    //  background: #f3f6f9;
    //}
  }
}

.topic-detail {
  margin-bottom: 20px;

  .topic-header {
    //padding: 10px;
    border-bottom: 1px solid #eee;
  }

  .topic-content, .topic-tags, .topic-like-users, .topic-actions {
    margin: 20px 20px;
  }

  .topic-content {
    font-size: 15px;
    color: #000;
    white-space: normal;
    word-break: break-all;
    word-wrap: break-word;

    nav {
      background-color: #fdfdfd;
      border: 1px solid #f6f6f6;
      padding: 10px 0;
      font-size: 14px;

      ul {
        list-style: disc outside;
        margin-left: 2em;
        margin-top: 0;
      }
    }
  }

  .topic-tags {
    .topic-tag {
      height: 25px;
      padding: 0 8px;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      border-radius: 12.5px;
      margin-right: 10px;
      background: #f7f7f7;
      border: 1px solid #f7f7f7;
      color: #777;
      font-size: 12px;

      &:hover {
        color: #1878f3;
        background: #fff;
        border: 1px solid #1878f3;
      }
    }
  }

  .topic-like-users {
    width: 80%;
    margin: 0 auto;
    text-align: center;

    .like-user {
      height: 30px;
      width: 30px;
      margin: 10px auto;

      .avatar {
        max-width: 30px;
        max-height: 30px;
        min-width: 30px;
        min-height: 30px;
        margin-right: 5px;
        border: solid 1px #e8ecee;
      }
    }
  }

  .topic-actions {
    margin: 20px auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;

    .action {
      background: #ffffff;
      cursor: pointer;
      flex: 1;
      display: flex;
      align-items: center;
      flex-direction: column;
      color: #8590a6;

      .checked-icon {
        color: red;
      }

      &.disabled {
        cursor: not-allowed;

        &:hover {
          color: #8590a6;

          > .action-icon {
            fill: #8590a6;
          }
        }
      }

      > .action-icon {
        font-size: 30px;
        fill: #8590a6;
      }

      &:hover {
        color: #1878f3;

        > .action-icon {
          fill: #1878f3;
        }
      }

      > .content {
        margin-top: 10px;
        font-size: 12px;
      }
    }
  }
}
